<?php

class Ehl_Controller_Action extends Jnd_Controller_Action
{

    public function init()
    {
        parent::init();
        $logout = $this->getRequest()->getParam("logout", false);
		if ( $logout !== false ) 
        {
			Zend_Auth::getInstance()->getStorage()->clear();
			Zend_Auth::getInstance()->clearIdentity();
			$this->_redirect('');
        }
    }

    public static function getCache()
    {
        return Ehl_Cache::recuperationCache();
    }
}

